package com.zxst.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxst.entity.Orders;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxst
 * @since 2025-06-24
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    @Select("select sum(total) from  orders where g_fk = #{gid}")
    Long getCountByPid(@Param("gid") Integer gid);
}
